feat(config): add EnableSslTracing / DSsl flags for the OpenSSL L7 gadget#835
feat(config): add EnableSslTracing / DSsl flags for the OpenSSL L7 gadget#835matthyx wants to merge 1 commit into
Conversation
…dget armosec/private-node-agent ships a native OpenSSL TLS-capture gadget (R-L7-1) that needs an off-by-default toggle, mirroring the HTTP detection pair. config.Config is external to that repo, so it currently gates on a local ENABLE_SSL_TRACING env var; adding the field here lets it move to the standard config mechanism. - EnableSslTracing (sslTracingEnabled): enable the SSL/TLS L7 capture gadget. - DSsl (dSsl): disable override, mirroring DHttp/dHttp. Both default to false (zero value), so behavior is unchanged unless set. Sample configuration/config.json documents sslTracingEnabled; config_test updated to assert the default. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds two new boolean fields ( ChangesSSL Tracing Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Performance Benchmark ResultsNode-Agent Resource Usage
Dedup EffectivenessNo data available. |
|
Closing — these config fields aren't needed upstream after all; the consuming side no longer relies on an upstream config field for this. Thanks! |
What
Adds two config flags to
config.Config:EnableSslTracing(sslTracingEnabled) — enable the native OpenSSL TLS-capture (R-L7-1) gadget.DSsl(dSsl) — disable override, mirroring the existingDHttp/dHttppair.Both default to
false(zero value), so behavior is unchanged unless explicitly set.configuration/config.jsondocumentssslTracingEnabled, andconfig_test.goasserts the default.Why
armosec/private-node-agentships a native OpenSSL uprobe gadget that captures decrypted TLS plaintext per-container and exports it asR-L7-1records. It needs an off-by-default toggle following the same pattern as HTTP detection (EnableHttpDetection/DHttp).Because
config.Configlives here (not in private-node-agent), that gadget currently gates on a localENABLE_SSL_TRACINGenv var as a stopgap. Adding the field upstream lets the gate move to the standard config mechanism — a two-line swap on the consumer side (cfg.EnableSslTracinginstead of the env helper) once this is released.Test
go build ./pkg/config/✓go test ./pkg/config/✓ (theDeepEqualagainst the parsedconfiguration/config.jsonincludes the newsslTracingEnabled: false)gofmtclean;config.jsonvalidates.🤖 Generated with Claude Code
Summary by CodeRabbit